package com.fxpc;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableScheduling //开启定时任务
@SpringBootApplication
public class StartApplication {
    private static Logger logger = LoggerFactory.getLogger(StartApplication.class);

    public static void main(String[] args) {
        ConfigurableApplicationContext context = SpringApplication.run(StartApplication.class, args);
        //logger.info("定时任务页面管理测试地址http:{}", "http://ddglyh.geo-compass.com/");
        logger.info("定时任务页面管理官方地址https:{}", "https://fxpc.mem.gov.cn/");
        System.out.println("<<<<<<全国自然灾害综合风险普查-普查进度报送-每日完成比例启动成功>>>>>>");
        Environment environment = context.getBean(Environment.class);
        System.out.println("访问链接：http://127.0.0.1:" + environment.getProperty("server.port") + environment.getProperty("server.servlet.context-path"));
    }


}
